Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Commands Namespace / FormatCellsActionCommand Class / FormatCellsActionCommand Constructor / FormatCellsActionCommand Constructor(IWorksheet,StyleFormat,Reference[],Nullable<Boolean>,Boolean,Boolean)
The worksheet which this command attached to.
The range which this command working to.
if set to true, the horizontal alignment of the specified range will be set to center.
if set to true, merge cells in each row (or column) of the specified range as separate merged cells.


In This Topic
    FormatCellsActionCommand Constructor(IWorksheet,StyleFormat,Reference[],Nullable<Boolean>,Boolean,Boolean)
    In This Topic
    Initializes a new instance of the FormatCellsActionCommand class.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal worksheet As IWorksheet, _
       ByVal newStyleFormat As StyleFormat, _
       ByVal references() As Reference, _
       ByVal isMergedCell As Nullable(Of Boolean), _
       Optional ByVal center As Boolean, _
       Optional ByVal across As Boolean _
    )
    'Usage
     
    
    Dim worksheet As IWorksheet
    Dim newStyleFormat As StyleFormat
    Dim references() As Reference
    Dim isMergedCell As Nullable(Of Boolean)
    Dim center As Boolean
    Dim across As Boolean
     
    Dim instance As New FormatCellsActionCommand(worksheet, newStyleFormat, references, isMergedCell, center, across)

    Parameters

    worksheet
    The worksheet which this command attached to.
    newStyleFormat
    references
    The range which this command working to.
    isMergedCell
    center
    if set to true, the horizontal alignment of the specified range will be set to center.
    across
    if set to true, merge cells in each row (or column) of the specified range as separate merged cells.
    See Also